<?
/* @author Udo Schroeter <udo.schroeter@gmail.com>
 * @license dual license: LGPL / commercial use license
 */ 

  session_name('colloq');
  session_start();

  $config['site.theme'] = 'default';
  $config['site.pagetemplate'] = 'default';
  $config['site.name'] = "Popsickles of Nerdia";
  $config['site.defaultcontroller'] = 'default';
  $config['site.defaultaction'] = 'index';
  
  $config['menu']['home'] = array('url' => 
    actionUrl($config['site.defaultaction'], $config['site.defaultcontroller']), 
    'caption' => 'Home');
    
  $config['menu']['game'] = array('url' => actionUrl('index', 'game'), 'caption' => 'Action');
  $config['menu']['shop'] = array('url' => actionUrl('index', 'shop'), 'caption' => 'Shop');
  $config['menu']['character'] = array('url' => actionUrl('index', 'character'), 'caption' => 'Character');
  $config['menu']['party'] = array('url' => actionUrl('index', 'party'), 'caption' => 'Party');
  $config['menu']['duel'] = array('url' => actionUrl('index', 'duel'), 'caption' => 'Duel');
  $config['menu']['meta'] = array('url' => actionUrl('index', 'meta'), 'caption' => 'Meta');
    
  $config['opt.startpageid'] = 1;
  $config['session.useridfield'] = 'userkey';

  $config['fb'] = array(
    'api_key' => '*FACEBOOK API KEY*',
    'secret' => '*FACEBOOK API SECRET*',
    'app_id' => '*FACEBOOK APP ID*',    
    'url' => 'http://apps.facebook.com/yourcanvaspage/',
    );
    
  foreach($_REQUEST as $k => $v)
    if (substr($k, 0, 3) == 'fb_' || substr($k, 0, strlen($config['fb']['api_key'])) == $config['fb']['api_key'])
      $_SESSION[$k] = $v;
    
  foreach($_SESSION as $k => $v)
    if (substr($k, 0, 3) == 'fb_' || substr($k, 0, strlen($config['fb']['api_key'])) == $config['fb']['api_key'])
      $_REQUEST[$k] = $v;    
    
  $config['cheat'] = array(
    'HP' => array('cost' => 3, 'txt' => 'a full heal'),
    'AP' => array('cost' => 5, 'txt' => 'an AP fill-up'),
    'GP' => array('cost' => 9, 'txt' => 'a gold piece boost'),
    'CP' => array('cost' => 13,'txt' => 'character progression points'),
    );
    
  $config['friend.stdimage'] = 'http://static.ak.fbcdn.net/pics/q_silhouette.gif';
  
  $config['environment'] = 'production';

  $config['loadmodel']['user'] = 'user';
  $config['loadmodel']['character'] = 'character';
  $config['include'][] = 'uilib.php';
  
?>
